package headfirst.singleton.stat;

/**
 * 加载时就初始化,若对象大,则加载时耗时过长,也有效率问题
 */
public class Singleton {
    private static final Singleton uniqueInstance = new Singleton();

    private Singleton() {
    }

    public static Singleton getInstance() {
        return uniqueInstance;
    }

    public String getDescription() {
        return "I'm a statically initialized Singleton!";
    }
}
